/*
 * @Description: 检测类型管理接口
 */
import xjaxios from "@/api/axios";
export default {
  /**
   * @description: 获取检测类型管理类型树状图 *代表必填
   * @param {String} order 排序方式 ASC DESC 默认ASC
   * @param {String} sort 自定义排序方式 'createTime'
   * @return {Array}
   */
  // 查询树状图信息
  getTreeTypeList() {
    return xjaxios.get("/v3/detection/detectionType/queryTreeList");
  },
  getTreequeryByCondition() {
    return xjaxios.post("/v3/detection/detectionType/queryByCondition", {});
  },
  postTreeTypeList(param) {
    return xjaxios.post("/v3/detection/detectionType/queryPageList", param);
  },
  /**
   * @description: 添加add,删除delList,修改设施edit
   * @param {Object} params *
   * @return {Object}
   */
  allmetInfo(params, met) {
    return xjaxios.post(`/v3/detection/detectionType/${met}`, params);
  }
}
